package com.example;

import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

public class RegisterServlet extends HttpServlet {

    protected void doPost(HttpServlet req, HttpServletResponse resp ) throws ServletException, IOException{
        String uname = req.getInitParameter("username");
        String pwd = req.getInitParameter("password");
        String code = req.getInitParameter("vcode");
        System.out.println("收到用户名：" +  uname);
        System.out.println("收到密码：" + pwd);
        System.out.println("验证码:" + code);
    }
}
